package com.ts.manage.cms.service;

import com.ts.framework.domain.system.SysDictionary;
import com.ts.manage.cms.dao.SysDictionaryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysDictionaryService {
    @Autowired
    SysDictionaryRepository sysDictionaryRepository;

    //根据dType查询字典信息
    public SysDictionary findDictionaryByType(String dType) {
        return sysDictionaryRepository.findSysBydType(dType);
    }
}
